* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    font-family: 'Playfair Display', serif;
    margin-left: -20px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* Background Carousel */
.background-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* Background Images - Update these to match your actual filenames */
.carousel-image:nth-child(1) {
    background-image: url('IMG-20251113-WA0003.jpg');
}

.carousel-image:nth-child(2) {
    background-image: url('IMG-20251113-WA0004.jpg');
}

.carousel-image:nth-child(3) {
    background-image: url('IMG-20251113-WA0005.jpg');
}

.carousel-image:nth-child(4) {
    background-image: url('IMG-20251113-WA0006.jpg');
}

.carousel-image:nth-child(5) {
    background-image: url('IMG-20251113-WA0007.jpg');
}

.carousel-image:nth-child(6) {
    background-image: url('IMG-20251113-WA0008.jpg');
}

.carousel-image:nth-child(7) {
    background-image: url('IMG-20251113-WA0009.jpg');
}

.carousel-image:nth-child(8) {
    background-image: url('IMG-20251113-WA0010.jpg');
}

.carousel-image:nth-child(9) {
    background-image: url('IMG-20251113-WA0011.jpg');
}

.carousel-image:nth-child(10) {
    background-image: url('IMG-20251113-WA0012.jpg');
}

.carousel-image.active {
    opacity: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 40px;
    z-index: 10;
}

.hero-text {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    opacity: 0;
    transform: scale(0.95);
    animation: zoomFadeIn 1.5s ease-out forwards;
}

@keyframes zoomFadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-text h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 6rem;
    font-weight: 500;
    color: white;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.hero-text p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: white;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Scrollable Sections */
section {
    min-height: 100vh;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

/* About Section */
.about-section {
    background-color: #f8f9fa;
}

.about-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #333;
}

.about-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Projects Section */
.projects-section {
    background-color: #ffffff;
    padding: 100px 20px;
}

.projects-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #333;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 2rem;
}

/* Individual Project Sections */
.project-section {
    scroll-margin-top: 100px;
    padding: 3rem 0;
}

.project-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    max-width: 900px;
    margin: 0 auto;
}

.project-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.project-card p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Project Carousel Styles */
.project-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    margin-top: 1.5rem;
    overflow: hidden;
    border-radius: 8px;
}

.project-carousel-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none; /* Disable clicks on hidden images */
}

.project-carousel-image.active {
    opacity: 1;
    pointer-events: auto; /* Enable clicks only on visible image */
}

/* Carousel Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.3s, transform 0.2s;
    line-height: 1;
    color: #333;
}

.carousel-arrow:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

/* Make carousel images clickable */
.project-carousel-image {
    cursor: pointer;
    transition: opacity 0.8s ease-in-out, transform 0.3s ease;
}

.project-carousel-image:hover {
    transform: scale(1.02);
}

/* Fullscreen Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: scale(1.2);
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.carousel-indicator.active {
    background-color: white;
    transform: scale(1.2);
}

/* Contact Section */
.contact-section {
    background-color: #2c3e50;
    color: white;
}

.contact-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 2rem;
}

.contact-section p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 4rem;
    }
    
    .hero-text p {
        font-size: 1.3rem;
    }
    
    .project-carousel {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    section {
        padding: 60px 20px;
    }
    
    .about-section h2,
    .projects-section h2,
    .contact-section h2 {
        font-size: 2rem;
    }
    
    .project-carousel {
        height: 250px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .carousel-arrow.prev {
        left: 10px;
    }
    
    .carousel-arrow.next {
        right: 10px;
    }
}